<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>千篇网外转页面</title>
    <link rel="stylesheet" href="css/link.css">
</head>
<body>
   <div class="urllinkbox">
        <div class="text">
            <p class="bt">即将离开千篇资源网</p>
            <p>您即将离开千篇资源网，请注意您的账号和财产安全。</p>
            <p class="url">https://www.baidu.com/</p>
        </div>
        <div class="btnbox clear">
            <div class="fr">
                <a href="https://www.baidu.com/" class="btn btn1">继续访问</a>
                <div class="btn" onclick="closewindow()">关闭网页</div>
            </div>
        </div>
   </div>
    <script>
        function closewindow() {
            var browserName = navigator.appName;
            if (browserName == "Netscape") {
               open(location, '_self').close();
            }
            else {
                if (browserName == "Microsoft Internet Explorer") {
                    window.opener = null;
                    window.open('', '_self');
                    window.close();
                  }
            }
        }
    </script>
</body>
</html>